package com.toutiao.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.entity.QueryParams;
import com.toutiao.dao.NewsCommentReplyMapper;
import com.toutiao.dao.model.NewsCommentReply;
import com.toutiao.dao.model.NewsCommentReplyExample;
import com.toutiao.daoEx.NewsCommentReplyMapperEx;
import com.toutiao.daoEx.model.NewsCommentReplyEx;

@Service
public class NewsCommentReplyService {
	@Autowired
	private NewsCommentReplyMapper newsCommentReplyMapper;
	@Autowired
	private NewsCommentReplyMapperEx newsCommentReplyMapperEx;

	public int countByExample(NewsCommentReplyExample example) {
		return this.newsCommentReplyMapper.countByExample(example);
	}

	public NewsCommentReply selectByPrimaryKey(Integer id) {
		return this.newsCommentReplyMapper.selectByPrimaryKey(id);
	}

	public List<NewsCommentReply> selectByExample(NewsCommentReplyExample example) {
		return this.newsCommentReplyMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.newsCommentReplyMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(NewsCommentReply record) {
		return this.newsCommentReplyMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(NewsCommentReply record) {
		return this.newsCommentReplyMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(NewsCommentReplyExample example) {
		return this.newsCommentReplyMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(NewsCommentReply record, NewsCommentReplyExample example) {
		return this.newsCommentReplyMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(NewsCommentReply record, NewsCommentReplyExample example) {
		return this.newsCommentReplyMapper.updateByExample(record, example);
	}

	public int insert(NewsCommentReply record) {
		return this.newsCommentReplyMapper.insert(record);
	}

	public int insertSelective(NewsCommentReply record) {
		return this.newsCommentReplyMapper.insertSelective(record);
	}
	
	public List<NewsCommentReplyEx> selectAppList(QueryParams.Builder builder){
		return this.newsCommentReplyMapperEx.selectAppList(builder);
	}

}
